//
//  GYSCircleSkipButton.h
//  AiHome
//
//  Created by macbook on 2018/1/27.
//  Copyright © 2018年 yguan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CircleSkipButtonBlock)(void);

@interface GYSCircleSkipButton : UIButton <CAAnimationDelegate>

//设置圆环颜色
@property (nonatomic, strong) UIColor    *circleColor;

//设置进度条颜色
@property (nonatomic, strong) UIColor    *progressColor;

//设置背景色
@property (nonatomic, strong) UIColor    *fillColor;

//设置进度条宽度
@property (nonatomic, assign) CGFloat    lineWidth;

//设置动画时间
@property (nonatomic, assign) CGFloat    animationDuration;

/**
 *  设置动画时间结束后回调
 *
 *  @param lineWidth line width
 *  @param block     block
 *  @param duration  time
 */
- (void)startAnimationDuration:(CGFloat)duration withBlock:(CircleSkipButtonBlock )block;

@end
